﻿.container {
    width: 100%;
    max-width: 640px;
    position: relative;
    padding: 0px;
}

    .container .company-logo-top {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 10;
        padding: 16px;
    }

    .container .fixed-header {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 100;
        display: flex;
        justify-content: center;
        background: transparent;
        max-width: 640px;
        background: none;
    }

    .container .qrcode-picture {
        position: absolute;
        top: 16px;
        right: 16px;
        width: 30px;
        height: auto;
        cursor: pointer;
    }

    .container .lang-picture {
        position: absolute;
        top: 55px;
        right: 16px;
        width: 30px;
        height: auto;
        cursor: pointer;
    }

    .container .cover-bg {
        position: absolute;
        max-width: 640px;
        width: 100%;
        z-index: 0;
        height: 100%;
        top: 0px;
        background-position: top;
        background-size: contain;
        background-repeat: no-repeat;
        justify-content: center;
        align-items: center;
    }

#card-node .container {
    container-type: inline-size;
}

#card-node .cover-bg {
    width: min(100cqw, 640px);
}

.container .cover-basic-user-wrap {
    position: relative;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    margin-top: 50px;
    margin-left: 120px;
    text-align: left;
}

.container .cover-user-logo-wrap {
    position: absolute;
    top: -80px;
    right: 8.2rem;
    transform: translateX(calc(+15% + 80px));
    width: 140px;
    height: 140px;
    z-index: 9999;
}

.container .cover-user-logo {
    width: 110%;
    height: 110%;
    background-position: center;
    background-size: cover;
    border-radius: 50%;
    border: 1.5px solid black;
    z-index: 2;
    box-sizing: border-box;
}

.container .white-block {
    height: 300px;
    width: 100%;
}

.container .cover-company-logo {
    position: absolute;
    top: 94px;
    right: 103px;
    border-radius: 12px;
    border: 3px solid rgb(46, 94, 111);
    z-index: 3;
    min-width: 50px;
    min-height: 50px;
    flex-basis: 50px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (min-width: 768px) {
    .container .container-bg {
        position: relative;
        z-index: 3;
        width: 100%;
        min-height: 69vh;
        background-color: white;
        border-radius: 350px 0 0 0; /* 左上、右上、右下、左下 */
        /*margin-top: 300px;*/
        padding-top: 3px;
        box-shadow: 0 -5px 10px 0 rgba(0, 0, 0, 0.35);
        padding-bottom: 40px
    }
}

@media (max-width: 767px) {
    .container .container-bg {
        position: relative;
        z-index: 3;
        width: 100%;
        min-height: 69vh;
        background-color: white;
        border-radius: 280px 0 0 0; /* 左上、右上、右下、左下 */
        /*margin-top: 300px;*/
        padding-top: 3px;
        box-shadow: 0 -5px 10px 0 rgba(0, 0, 0, 0.35);
        padding-bottom: 40px
    }
}

.container .user-name {
    margin-top: 60px;
    font-size: 25px;
    font-weight: 600;
    color: black;
    max-width: calc(100% - 20px);
}

.container .user-department {
    margin-top: 10px;
    font-size: 16px;
    color: black;
    max-width: calc(100% - 20px);
}

.container .user-jobtitle {
    margin-top: 3px;
    font-size: 16px;
    color: black;
    max-width: calc(100% - 20px);
}

.container .user-description {
    font-size: 14px;
    color: black;
    display: flex;
    flex-wrap: wrap;
    width: 88%;
    max-width: 88%;
    position: relative;
    left: 23px;
}


    .container .user-description .clamp-3 {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .container .user-description .desc-text {
        display: inline;
        position: relative;
        width: 100%;
        white-space: pre-line;
        word-break: break-all;
    }

    .container .user-description .more-link {
        color: grey;
        cursor: pointer;
        position: absolute;
        right: 50%;
        bottom: -35px;
        z-index: 2;
        font-size: 14px;
    }

.container .user-description-container {
    margin-top: 24px;
    margin-bottom: 100px;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.container .card-user-container {
    margin: 40px 0;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.container .card-field-title {
    display: flex;
    align-items: center;
    color: black;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

    .container .card-field-title::before {
        content: "";
        display: inline-block;
        width: 6px;
        height: 20px;
        background: #00a5b2;
        margin-right: 8px;
    }

.container .card-field-info {
    font-size: 14px;
    line-height: 20px;
    color: rgb(74, 74, 74);
    align-items: center;
    padding: 10px 0;
    word-break: break-all;
}

.container .company-info-name {
    font-size: 20px;
    line-height: 28px;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.container .card-field-info td {
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.container .card-field-logo {
    max-height: 40px;
    width: auto;
    margin-right: 10px;
}

    .container .card-field-logo.image {
        max-height: 75px;
        max-width: 100%;
        width: unset;
        margin-right: 0;
    }

        .container .card-field-logo.image.full {
            max-height: unset;
            max-width: unset;
            width: 100%;
        }

.container .card-field-link {
    color: #888888;
    text-decoration: underline !important;
}

    .container .card-field-link:hover {
        color: #888888;
        text-decoration: underline !important;
    }


.container .card-field-info-link {
    display: flex;
    flex-wrap: wrap;
    padding: 20px 16px;
    color: #888888;
}

.container .card-company-container {
    position: relative;
}


.container .company-logo-wrapper {
    position: absolute;
    top: 35px; /* 右上角 */
    right: 0;
    margin: 16px 0 0 0;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}


.container .company-logo {
    object-fit: contain;
    max-height: 45px;
    display: block;
}


.container .company-name {
    font-size: 16px;
    font-weight: 800;
    color: black;
}

/* 固定底部的儲存聯絡人列 */
.container .fixed-save-contact-row {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    background: transparent;
    pointer-events: none;
    max-width: 640px;
    background: white;
}

.container .save-contact-content {
    margin: 12px 16px;
    display: flex;
    align-items: center;
    width: 100%;
    bottom: 0;
    max-width: 600px;
    background: white;
    justify-content: center;
    pointer-events: auto;
}

.container .save-contact-btn {
    flex: 1;
    background: #fff;
    border: 1.5px solid #232f4b;
    border-radius: 15px;
    color: #232f4b;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    padding: 5px 0;
    margin-right: 20px;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    user-select: none;
}

    .container .save-contact-btn:active {
        background: #232f4b;
        color: #fff;
    }

.container .save-contact-img {
    width: 35px;
    height: 35px;
    background: #232f4b;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    cursor: pointer;
}

    .container .save-contact-img img {
        width: 32px;
        height: 32px;
        object-fit: contain;
        display: block;
    }

/* 連結按鈕樣式 */
.container .card-link-btn {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 3px 15px 0 rgba(0,0,0,0.22);
    padding: 18px 32px;
    margin: 0 0;
    transition: box-shadow 0.2s;
    cursor: pointer;
    width: 100%;
    max-width: 680px;
    border: none;
    justify-content: flex-start;
}

    .container .card-link-btn:hover {
        box-shadow: 0 12px 36px 0 rgba(0,0,0,0.28);
    }

    .container .card-link-btn .link-icon {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: #f5f5f5;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 24px;
        flex-shrink: 0;
    }

    .container .card-link-btn .link-text {
        font-size: 18px;
        font-weight: 600;
        color: #222;
        text-align: center;
        flex: 1;
        letter-spacing: 1px;
        word-break: break-word;
    }


.container .card-field-info a {
    color: #888888;
    text-decoration: underline !important;
}

    .container .card-field-info a:hover {
        color: #888888;
        text-decoration: underline !important;
    }

.container td {
    line-height: 45px;
}
/* 文字區塊展開收合功能 */
.template-7 .text-block-wrapper {
    position: relative;
}

.template-7 .text-block-content {
    line-height: 1.6;
    word-break: break-word;
}

    /* 限制3行顯示 */
    .template-7 .text-block-content.text-clamp-3 {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 展開狀態 */
    .template-7 .text-block-content.text-expanded {
        display: block;
    }

/* 展開收合按鈕容器 */
.template-7 .text-block-toggle {
    margin-top: 8px;
    text-align: left;
}

/* 展開收合按鈕 */
.template-7 .toggle-button {
    color: #007bff;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

    .template-7 .toggle-button:hover {
        background-color: #f0f0f0;
        text-decoration: none;
    }

/* Type 8 輪播圖片樣式 */
.template-7 .carousel-wrapper {
    margin: 10px 0;
}

.template-7 .carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background-color: white;
}

.template-7 .carousel-slides {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
}

.template-7 .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .template-7 .carousel-slide.active {
        opacity: 1;
        z-index: 1;
    }

.template-7 .carousel-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* 尺寸模式: 滿版 (full) */
.template-7 .carousel-container.size-full .carousel-slide {
    justify-content: center;
}

    .template-7 .carousel-container.size-full .carousel-slide a {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.template-7 .carousel-container.size-full .carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 尺寸模式: 置中 (center) */
.template-7 .carousel-container.size-center .carousel-slide {
    justify-content: center;
}

    .template-7 .carousel-container.size-center .carousel-slide a {
        display: contents;
    }

.template-7 .carousel-container.size-center .carousel-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* 左右箭頭 */
.template-7 .carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgb(0 0 0 / 0%);
    color: #464646;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

    .template-7 .carousel-control:hover {
        background-color: rgba(0, 0, 0, 0.7);
    }

    .template-7 .carousel-control.prev {
        left: 10px;
    }

    .template-7 .carousel-control.next {
        right: 10px;
    }

/* 指示點 */
.template-7 .carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 10;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

    .template-7 .carousel-indicators .indicator {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: background-color 0.3s;
        pointer-events: auto;
    }

        .template-7 .carousel-indicators .indicator.active {
            background-color: rgba(255, 255, 255, 1);
        }

        .template-7 .carousel-indicators .indicator:hover {
            background-color: rgba(255, 255, 255, 0.8);
        }

/* 響應式調整 */
@media (max-width: 640px) {
    .template-7 .carousel-control {
        padding: 10px;
        font-size: 14px;
    }

    .template-7 .carousel-indicators .indicator {
        width: 8px;
        height: 8px;
    }
}
